﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Net.Sockets;

namespace CommandServer
{
    public enum Command
    {
        LEFT,
        RIGHT,
        TURN,
        LINE,
        GO
    }

    [Serializable]
    public class BTXMLDriveCom
    {
        // Command
        private Command command;

        // Parameters
        private double speed;
        private double acceleration;
        private double length;
        private double radius;
        private double angle;

        //Properties
        public Command Command
        {
            get { return command; }
            set { command = value; }
        }

        public double Speed
        {
            get { return speed; }
            set { speed = value; }
        }

        public double Acceleration
        {
            get { return acceleration; }
            set { acceleration = value; }
        }

        public double Length
        {
            get { return length; }
            set { length = value; }
        }

        public double Radius
        {
            get { return radius; }
            set { radius = value; }
        }

        public double Angle
        {
            get { return angle; }
            set { angle = value; }
        }

        //Constructor
        public BTXMLDriveCom()
        {
        }

        public BTXMLDriveCom(Command cmd, double speed, double acceleration, double length, double radius, double angle)
        {
            this.command = cmd;
            this.speed = speed;
            this.acceleration = acceleration;
            this.length = length;
            this.radius = radius;
            this.angle = angle;
        }







    }
}
